<template>
  <div class="formInput">
         <el-form-item :label="data.displayName">
            <el-select v-model="value" :filterable="data.filterable" :multiple="data.multiple" placeholder="请选择">
                  <el-option
                      v-for="item in options"
                      :key="item.value"
                      :label="item.label"
                      :value="item.value">
                  </el-option>
              </el-select>
         </el-form-item>
  </div>
</template>
<script lang="ts">
 
import { Component, Vue,Prop} from 'vue-property-decorator';
@Component({
  components: {
  },
})
export default class FormSelect extends Vue {
      @Prop() private data!: any;
      private options:any={};
      private value:any="";
      async created(){
        this.options=this.data.selectItems;
     }
}
</script>
<style lang="less">
    .formInput{
        .el-select{
           width: 100%;
        }
    }
</style>
